Federico Mena Quintero [Tue, 3 Jan 2012 21:05:39 +0000 (15:05 -0600)]
treeview: bgo#666685 - Crash when toggling the selected status of a row
The refactoring from
e01af5c5c seems to have caused this inadvertently.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Javier Jardón [Tue, 3 Jan 2012 16:52:34 +0000 (17:52 +0100)]
gtkcolorsel: Do not use deprecated GdkColor api
Javier Jardón [Tue, 3 Jan 2012 16:23:38 +0000 (17:23 +0100)]
gtkcellview: Do not use deprecated GdkColor api
Chun-wei Fan [Fri, 30 Dec 2011 09:20:22 +0000 (17:20 +0800)]
gtk/gtkprivate.c: Include stdlib.h
Include stdlib.h for getenv to avoid C4013/implicit declaration of ...
warnings
Javier Jardón [Tue, 3 Jan 2012 02:35:02 +0000 (03:35 +0100)]
test/testgtk.c: Fix compilation warning
Matthias Clasen [Tue, 3 Jan 2012 15:51:13 +0000 (10:51 -0500)]
Fix problems with DND on some X servers
When the X server does not support the shape extension (as some
vnc implementations seem to), our DND code was always seeing
an empty input shape, so drops always missed their target.
http://bugzilla.gnome.org/show_bug.cgi?id=620240
Emmanuele Bassi [Tue, 5 Oct 2010 13:07:32 +0000 (14:07 +0100)]
Add symbolic constants for event emission control
Similar to https://bugzilla.gnome.org/show_bug.cgi?id=631413 in GLib,
GTK+ should have symbolic constants for controlling the event handling
instead of a mere boolean value.
The GDK_EVENT_PROPAGATE and GDK_EVENT_STOP constants map to FALSE and
TRUE respectively.
https://bugzilla.gnome.org/show_bug.cgi?id=631414
Ignacio Casal Quinteiro [Sun, 1 Jan 2012 21:38:04 +0000 (22:38 +0100)]
textdisplay: use g_list_free_full
Kjell Ahlstedt [Wed, 28 Dec 2011 15:32:32 +0000 (16:32 +0100)]
comboboxtext: Set entry-text-column and id-column props in the constructor
This is cleaner than setting the value in the _new() functions and
makes binding and GtkBuilder instantiation easier. Bug #612396, comment 65.
Chun-wei Fan [Fri, 30 Dec 2011 08:51:26 +0000 (16:51 +0800)]
Bug 667018-gtk/gtkwindow.c: Include deprecated/gtkstyle.h
This is needed for the prototype of gtk_widget_reset_rc_styles, to avoid
C4013/implicit declaration of ... warnings of that function
Chun-wei Fan [Fri, 30 Dec 2011 08:49:49 +0000 (16:49 +0800)]
gtk/gtkspinbutton.c: Remove lingering ';'
...so that C89 compilers will not complain
Yaron Shahrabani [Fri, 30 Dec 2011 09:12:58 +0000 (11:12 +0200)]
Updated Hebrew translation.
Chun-wei Fan [Fri, 30 Dec 2011 08:44:55 +0000 (16:44 +0800)]
gtk/Makefile.am: Update VS projects completion
Take the sources in gtk/deprecated/ into account-VS does not like '/'
in file paths.
Chun-wei Fan [Fri, 30 Dec 2011 08:40:06 +0000 (16:40 +0800)]
Update Visual C++ projects
-Update include paths for the GTK+ main projects to be consistent across
the board
-Update demo projects to add a new demo source file, transparent.c
Chun-wei Fan [Fri, 30 Dec 2011 08:21:38 +0000 (16:21 +0800)]
Update gdk/gdkconfig.h.win32
Apparently the deprecation warning macros are placed into gdkconfig.h
during the configure stage, so put these in the pre-configured
gdkconfig.h.win32 as well, as their definitions are needed for all builds.
Matthias Clasen [Fri, 30 Dec 2011 07:01:15 +0000 (02:01 -0500)]
Remove an unnecessary warning
Don't warn if there's more than one mnemonic label for a widget,
and skip invisible labels.
Bug 665015
Matthias Clasen [Fri, 30 Dec 2011 05:38:06 +0000 (00:38 -0500)]
Add a Since tag
gtk_css_provider_to_string is a post-3.0 addition.
Fixes bug 659516
Matthias Clasen [Fri, 30 Dec 2011 05:28:15 +0000 (00:28 -0500)]
Drop -uninstalled.pc files
This has already been done in GLib, so follow suit here.
Matthias Clasen [Fri, 30 Dec 2011 04:43:28 +0000 (23:43 -0500)]
XIM: gracefully deal with non-X backends
Patch by Young-Ho Cha, bug 660309.
Matthias Clasen [Fri, 30 Dec 2011 04:38:16 +0000 (23:38 -0500)]
GtkImContextSimple: fix tentative match handling
When switching to the compact table format, we inadvertedly lost
the 'tentative match' handling which allows to complete longer
compose sequences even if a prefix is a complete sequence.
This was pointed out in bug 666710.
Matthias Clasen [Wed, 28 Dec 2011 16:32:44 +0000 (11:32 -0500)]
Cosmetic changes to comments
Piotr Drąg [Thu, 29 Dec 2011 16:49:42 +0000 (17:49 +0100)]
Updated POTFILES.skip
Benjamin Otte [Wed, 28 Dec 2011 13:34:54 +0000 (14:34 +0100)]
settings: Cache style properties
This way we don't need to compute them every lookup. (That's not the
real reason though - the real reason is that I want to add new APIs that
require the caching because they return consts).
Benjamin Otte [Wed, 28 Dec 2011 14:46:15 +0000 (15:46 +0100)]
modifierstyle: Move Private typedef to public header
Benjamin Otte [Thu, 29 Dec 2011 09:02:54 +0000 (10:02 +0100)]
reftests: Add test for empty grid with spacing
This used to crash.
https://bugzilla.gnome.org/show_bug.cgi?id=660139
Matthias Clasen [Wed, 28 Dec 2011 16:20:47 +0000 (11:20 -0500)]
Fix problems with sticky handling
Reading a card32 property into a long may lead to undefined high
bits, so mask them off. Also, make the conditions for setting and
unsetting the stick flag opposites, to avoid unintended changes.
Patch by John Lindgren, bug 666842
Matthias Clasen [Wed, 28 Dec 2011 16:16:54 +0000 (11:16 -0500)]
Update various EWMH interactions
The current EWMH has added 'source indication' fields to a number
of client messages. Set these to 1 to indicate a regular client.
Also fill the button field of _NET_WM_MOVERESIZE.
Javier Jardón [Mon, 26 Dec 2011 16:12:20 +0000 (17:12 +0100)]
tests/testgtk: Do not use GdkColor-based api
Daniel Mustieles [Mon, 26 Dec 2011 10:10:17 +0000 (11:10 +0100)]
Updated Spanish translation
Ignacio Casal Quinteiro [Sun, 25 Dec 2011 17:13:51 +0000 (18:13 +0100)]
gtktextlayout: use g_slice for GtkTextLineDisplay
Ignacio Casal Quinteiro [Sun, 25 Dec 2011 16:49:03 +0000 (17:49 +0100)]
gtktextbtree: use g_slice
Benjamin Otte [Fri, 23 Dec 2011 21:23:40 +0000 (22:23 +0100)]
themingbackground: Avoid erroring cairo context
Benjamin Otte [Fri, 23 Dec 2011 21:21:45 +0000 (22:21 +0100)]
tests: Make widget-factory close when window is closed
Benjamin Otte [Fri, 23 Dec 2011 16:13:42 +0000 (17:13 +0100)]
cssprovider: Fix leak
Thanks to the heroic valgrinding efforts of Olivier Sessnik, another
leak could be plugged.
Matthias Clasen [Fri, 23 Dec 2011 04:45:28 +0000 (04:45 +0000)]
Fix scroll_offset handling
scroll_offset can be negative here, so replace a > 0 test
by != 0.
Matthias Clasen [Fri, 23 Dec 2011 04:44:17 +0000 (04:44 +0000)]
Only push the menu in if the position function said so
Matthias Clasen [Fri, 23 Dec 2011 04:42:12 +0000 (04:42 +0000)]
Use gtk_widget_get_allocated_width/height where it makes sense
Matthias Clasen [Fri, 23 Dec 2011 00:38:59 +0000 (00:38 +0000)]
Remove an unneeded variable
Matthias Clasen [Fri, 23 Dec 2011 00:13:07 +0000 (00:13 +0000)]
Remove an unused struct
Benjamin Otte [Thu, 22 Dec 2011 14:57:21 +0000 (15:57 +0100)]
combobox: Don't allow an individual cell to cheat
Make sure we only set sensitive when the cell is sensitive and visible.
Also avoid invalid memory accesses if no cells existed.
Benjamin Otte [Tue, 20 Dec 2011 14:34:57 +0000 (15:34 +0100)]
widget: Print a g_warning() when a cairo_t is invalid
Only print the warning on internal code, so we aren't too verbose.
Benjamin Otte [Wed, 21 Dec 2011 07:00:45 +0000 (08:00 +0100)]
styleproperties: Move private struct declaration into public header
Benjamin Otte [Thu, 22 Dec 2011 07:29:47 +0000 (08:29 +0100)]
x11: Don't handle focus events for NULL windows
The check was accidentally removed in the refactoring of
2ea328dfbc820c32a6f425805e632cd1aef45258.
Matthias Clasen [Thu, 22 Dec 2011 15:44:28 +0000 (15:44 +0000)]
Revert "x11: Avoid spurious focus events on grabs"
This reverts commit
db4a6040afd3d1cabbb306037e811f37d62e2e76.
This is causing bad focus confusion e.g. in gnome-terminal.
Javier Jardón [Tue, 13 Dec 2011 11:02:13 +0000 (11:02 +0000)]
Deprecate all the public API that is using GdkColor struct
Javier Jardón [Tue, 20 Dec 2011 23:49:39 +0000 (23:49 +0000)]
gtkappchooserwidget: Use g_object_clear()
Ryan Lortie [Wed, 21 Dec 2011 22:14:59 +0000 (17:14 -0500)]
GtkModelMenu: drop extra & added by mistake
Cosimo Cecchi [Wed, 21 Dec 2011 11:20:15 +0000 (12:20 +0100)]
application: don't unconditionally unref the GMenuModel in getters
Both the app-menu and menubar models can be NULL, so we shouldn't
blindly unref them, since g_object_unref() doesn't cope with NULL
pointers.
Cosimo Cecchi [Wed, 21 Dec 2011 11:19:31 +0000 (12:19 +0100)]
application: mark menu/menubar getters as (transfer none)
Since they do not return a reference to the underlying GMenuModel.
Cosimo Cecchi [Wed, 21 Dec 2011 10:29:39 +0000 (11:29 +0100)]
application: use the same variable names in definitions and declarations
gobject-introspection will be confused and mark the methods as not
introspectable otherwise.
Colin Walters [Thu, 25 Aug 2011 18:50:30 +0000 (14:50 -0400)]
GtkAction: Hold a reference to proxy widgets
Previously we expect that a proxy widget holds a reference to the
action via gtk_activatable_do_set_related_action(). However, it
is possible for the widget to still be in a floating state when
it adds itself to the the action.
This is a problem when gtk_action_get_proxies() gets called, because
we return floating objects back to the user. And language bindings
aren't going to be expecting that.
Fix this by calling ref_sink() and unref().
https://bugzilla.gnome.org/show_bug.cgi?id=657367
Matthias Clasen [Tue, 20 Dec 2011 19:10:39 +0000 (14:10 -0500)]
GtkApplicationWindow: fix a typo
And add a link to the screenshots.
Javier Jardón [Mon, 19 Dec 2011 14:09:36 +0000 (14:09 +0000)]
tests/testcombo.c: Use GdkRGBA instead GdkColor
Javier Jardón [Mon, 19 Dec 2011 13:48:16 +0000 (13:48 +0000)]
gtk/gtkcellview.c: Use new GdkRGBA api instead GdkColor one
Javier Jardón [Mon, 19 Dec 2011 13:39:54 +0000 (13:39 +0000)]
gtk/gtktrayicon-x11.c: Use new GdkRGBA api instead GDKColor one
Cosimo Cecchi [Tue, 20 Dec 2011 12:20:56 +0000 (13:20 +0100)]
button: deprecate the inner-border style property
Since we allocate the standard CSS border to the button now, and center
the child accordingly, there's no need for an additional inner-border
style property. Deprecate it and ignore its values.
https://bugzilla.gnome.org/show_bug.cgi?id=666600
Cosimo Cecchi [Tue, 20 Dec 2011 12:15:13 +0000 (13:15 +0100)]
button: add CSS borders to the size request
And allocate the button children according to it as well.
https://bugzilla.gnome.org/show_bug.cgi?id=666600
Cosimo Cecchi [Tue, 20 Dec 2011 11:28:47 +0000 (12:28 +0100)]
button: add a border param to gtk_button_get_props()
We'll use it later to compute the child offsets.
https://bugzilla.gnome.org/show_bug.cgi?id=666600
Javier Jardón [Tue, 20 Dec 2011 17:51:59 +0000 (17:51 +0000)]
tests/testgtk.c: Remove death code
Ryan Lortie [Tue, 20 Dec 2011 15:44:50 +0000 (10:44 -0500)]
gtkmodelmenuitem: don't crash on missing action
Daniel Mustieles [Tue, 20 Dec 2011 13:45:14 +0000 (14:45 +0100)]
Updated Spanish translation
Cosimo Cecchi [Tue, 20 Dec 2011 10:41:35 +0000 (11:41 +0100)]
treeview: fix an uninitialised variable warning
Matthias Clasen [Mon, 19 Dec 2011 23:41:10 +0000 (18:41 -0500)]
Bump version
Matthias Clasen [Mon, 19 Dec 2011 23:37:44 +0000 (18:37 -0500)]
3.3.6
Matthias Clasen [Mon, 19 Dec 2011 23:37:28 +0000 (18:37 -0500)]
Fix dist
Matthias Clasen [Mon, 19 Dec 2011 23:07:42 +0000 (18:07 -0500)]
Fix symbol lists
Matthias Clasen [Mon, 19 Dec 2011 22:47:13 +0000 (17:47 -0500)]
Updates
Rui Matos [Mon, 19 Dec 2011 20:59:06 +0000 (20:59 +0000)]
Revert "progressbar: Set state flags on draw"
This reverts commit
6ed591871862ec87ee66fe69dca5c42087a12160 which is no
longer needed as the style context now has the state flags updated when going
into draw.
Matthias Clasen [Mon, 19 Dec 2011 20:16:11 +0000 (15:16 -0500)]
Add another bloatpad screenshot
Xan Lopez [Mon, 19 Dec 2011 18:25:02 +0000 (19:25 +0100)]
gdkwindow: plug memory leak
==23282== 64 bytes in 2 blocks are definitely lost in loss record 8,069 of 13,389
==23282== at 0x4A074CD: malloc (vg_replace_malloc.c:236)
==23282== by 0x39A1C3E2EA: cairo_region_create (cairo-region.c:196)
==23282== by 0x6D9AF3D: recompute_visible_regions_internal (gdkwindow.c:964)
==23282== by 0x6D9B4B8: recompute_visible_regions (gdkwindow.c:1126)
==23282== by 0x6DA3450: gdk_window_hide (gdkwindow.c:5689)
==23282== by 0x6D9CED9: _gdk_window_destroy_hierarchy (gdkwindow.c:2042)
==23282== by 0x6D9D040: gdk_window_destroy (gdkwindow.c:2109)
==23282== by 0x655B5E4: gtk_entry_unrealize (gtkentry.c:3012)
==23282== by 0x7068BF3: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
==23282== by 0x706710B: g_type_class_meta_marshal (gclosure.c:885)
==23282== by 0x7066DF9: g_closure_invoke (gclosure.c:774)
==23282== by 0x7080585: signal_emit_unlocked_R (gsignal.c:3340)
==23282== by 0x707F619: g_signal_emit_valist (gsignal.c:3033)
==23282== by 0x707FB71: g_signal_emit (gsignal.c:3090)
==23282== by 0x679E243: gtk_widget_unrealize (gtkwidget.c:4458)
==23282== by 0x64E83C7: gtk_bin_forall (gtkbin.c:172)
==23282== by 0x6548BBD: gtk_container_forall (gtkcontainer.c:2014)
==23282== by 0x67A966D: gtk_widget_real_unrealize (gtkwidget.c:10253)
==23282== by 0x672D002: gtk_tool_item_unrealize (gtktoolitem.c:474)
==23282== by 0x7068BF3: g_cclosure_marshal_VOID__VOID (gmarshal.c:85)
https://bugzilla.gnome.org/show_bug.cgi?id=666552
Matthias Clasen [Mon, 19 Dec 2011 18:58:21 +0000 (13:58 -0500)]
Updates
https://bugzilla.gnome.org/show_bug.cgi?id=666552
Rui Matos [Mon, 19 Dec 2011 16:13:28 +0000 (16:13 +0000)]
notebook: Use the widget state flags as a base for drawing
Rui Matos [Mon, 19 Dec 2011 15:52:14 +0000 (15:52 +0000)]
menuitem: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 15:43:10 +0000 (15:43 +0000)]
menubar: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 15:21:55 +0000 (15:21 +0000)]
label: Use the widget state flags as a base for drawing
Rui Matos [Mon, 19 Dec 2011 15:21:01 +0000 (15:21 +0000)]
label: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 14:10:29 +0000 (14:10 +0000)]
image: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 14:04:10 +0000 (14:04 +0000)]
iconview: Use the widget state flags as a base for drawing items
Rui Matos [Mon, 19 Dec 2011 14:03:17 +0000 (14:03 +0000)]
iconview: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 13:37:19 +0000 (13:37 +0000)]
hsv: Stop setting state flags on the style context for drawing
Rui Matos [Mon, 19 Dec 2011 13:00:02 +0000 (13:00 +0000)]
expander: Use the widget state flags as a base for drawing
Rui Matos [Mon, 19 Dec 2011 12:24:30 +0000 (12:24 +0000)]
eventbox: Stop setting state flags on the style context for drawing
Rui Matos [Sat, 17 Dec 2011 19:29:16 +0000 (19:29 +0000)]
entry: Use the widget state flags as a base for drawing icons and text
Rui Matos [Sat, 17 Dec 2011 19:27:58 +0000 (19:27 +0000)]
entry: Stop setting state flags on the style context for drawing
Rui Matos [Sat, 17 Dec 2011 18:55:09 +0000 (18:55 +0000)]
combobox: Stop setting state flags on the style context for drawing
Rui Matos [Fri, 16 Dec 2011 23:04:49 +0000 (23:04 +0000)]
cellview: Stop checking for sensitivity on draw
This is needless since GtkCellRenderer does it consistently before rendering.
Rui Matos [Fri, 16 Dec 2011 19:49:31 +0000 (19:49 +0000)]
cellrenderertoggle: Use the cell renderer's state flags as a base for rendering
This allows us to pick the underlying widget's state flags that we don't
explicitly set here.
Rui Matos [Fri, 16 Dec 2011 19:45:53 +0000 (19:45 +0000)]
cellrenderer: Use the widget state flags as a base for cell renderers' state
Rui Matos [Thu, 15 Dec 2011 19:36:27 +0000 (19:36 +0000)]
checkmenuitem: Clean up state flags handling on drawing
Rui Matos [Thu, 15 Dec 2011 02:43:49 +0000 (02:43 +0000)]
checkbutton: Use the widget state flags as a base for drawing the indicator
Instead of building a set of state flags specifically for drawing the
indicator, base it on the underlying widget state flags.
Rui Matos [Thu, 15 Dec 2011 02:39:49 +0000 (02:39 +0000)]
checkbutton: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:44:46 +0000 (01:44 +0000)]
calendar: Use the widget state flags as a base for drawing arrows
This allows drawing calendar arrows in all possible states the main widget may
be in.
The arrow_state array is converted into a bit field since it only really needs
to store boolean information about prelight for each arrow.
Rui Matos [Thu, 15 Dec 2011 01:39:00 +0000 (01:39 +0000)]
calendar: Use the widget state flags as a base for drawing days
Instead of building a set of state flags specifically for drawing days, base
it on the underlying widget state flags.
Rui Matos [Thu, 15 Dec 2011 01:35:48 +0000 (01:35 +0000)]
button: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:35:01 +0000 (01:35 +0000)]
arrow: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:33:01 +0000 (01:33 +0000)]
accellabel: Stop setting state flags on the style context for drawing
Rui Matos [Thu, 15 Dec 2011 01:29:26 +0000 (01:29 +0000)]
widget: Set style flags on the style context when the flags are set
This will allow us to simplify most draw methods by not having to explicitly
set the style flags on the context.
Rui Matos [Sun, 11 Dec 2011 19:20:02 +0000 (19:20 +0000)]
widget: Always propagate state flags to all children
https://bugzilla.gnome.org/show_bug.cgi?id=666126
Piotr Drąg [Mon, 19 Dec 2011 19:20:28 +0000 (20:20 +0100)]
Updated POTFILES.in
Ryan Lortie [Mon, 19 Dec 2011 19:03:32 +0000 (14:03 -0500)]
bump glib depend to 2.31.6